package com.ftg.learn.chapter02;

/**
 * @author KangJx
 * @date 2021/7/6
 */
public class LearnQuestion { //类作用域

    //变量 全局变量
    int a = 9;

    public void test1(){
        int test1 = 13;
        System.out.println(test1);
        System.out.println(a);
    }

    public void test2(){
        int test2 = 14;
        int _ = 13;
        int __ = 16;
        int ___ = 17;
        System.out.println(_+___);
        System.out.println(test2);
        System.out.println(a);
    }


    public static void main(String[] args) { //方法作用域
        int a = 9; //私有变量  局部变量
    }


}
